Skip to content

Add an option to generate API calls using a DbxRequest wrapper#564

Open
jonamireh wants to merge 6 commits into
dropbox:mainfrom
jonamireh:feature/request
Open

Add an option to generate API calls using a DbxRequest wrapper#564
jonamireh wants to merge 6 commits into
dropbox:mainfrom
jonamireh:feature/request

Conversation

@jonamireh

@jonamireh jonamireh commented Jun 8, 2026

Copy link
Copy Markdown

Summary

This PR adds DbxRequest to the public API and adds an optional parameter to the Java Stone backend on using it to generate additional methods that wrap the synchronous methods. This allows callers to capture the API request as an object

DbxRequest is functionally identical to java.util.Callable; we intend on using as a namespace for Kotlin extensions but don't want to pollute Callable with those extensions so we're introducing a new type.

Newly generated methods with be suffixed with *Request and apply to all method types (RPC, download & upload) where they return the result (if any) or the DbxDownloader/DbxUploader class. For now, no changes to DbxDownloader/DbxUploader.

Test Plan

New tests pass

@CLAassistant

CLAassistant commented Jun 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jonamireh jonamireh marked this pull request as ready for review June 9, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants